<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                template="./templates/base_template.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <f:metadata>
        <f:viewParam id="page" name="page" value="#{gestionnaireDeComptes.typePage}"></f:viewParam>
    </f:metadata>
    <ui:define name="content">
        
            <h3>Effectuer un #{param['page']}</h3>
            <h4>Mémo : Demander au prof pourquoi c:if sur commandbutton ca marche pas...</h4>

        <f:view>
            <h:form>

                <h:panelGrid columns="2">
                    <h:outputLabel value="Proprietaire:" for="proprietaire"></h:outputLabel>
                    <h:outputText id="proprietaire" value="#{gestionnaireDeComptes.details.proprietaire}"></h:outputText>
                    <h:outputLabel value="Solde:" for="solde"></h:outputLabel>
                    <h:outputText id="solde" value="#{gestionnaireDeComptes.details.solde}"></h:outputText>

                    <h:inputText id="inputMontant" value="#{gestionnaireDeComptes.montant}" ></h:inputText>  

                  
                        <h:commandButton id="btnDepot" 
                                         value="Effectuer le #{param['page']}" 
                                         action="#{gestionnaireDeComptes.doRetraitDepot()}"></h:commandButton>
                    
                </h:panelGrid>
            </h:form>
        </f:view>
    </ui:define>
</ui:composition>